<template>
  <div style="width: 1200px;margin: 0px auto;">

    <el-button type="danger" style="width: 1200px;height: 80px;font-size: 50px" @click="toMenuindex()">点击此处返回首页</el-button>
    <el-container>
      <!--<el-header height="100px">
      </el-header>-->
      <el-container>
        <el-aside width="350px">

          <el-row class="tac">
            <el-col :span="12" style="width: 350px">
              <el-menu
                default-active="2"
                class="el-menu-vertical-demo">
                <el-menu-item index="1" @click="toUserMessage()">
                  <i class="el-icon-location"></i>
                  <span slot="title">用户信息</span>
                </el-menu-item>
                <el-menu-item index="2" @click="toNotPayOrders()">
                  <i class="el-icon-menu"></i>
                  <span slot="title">待支付订单</span>
                </el-menu-item>
                <el-menu-item index="3" @click="toNotManagePage()">
                  <i class="el-icon-document"></i>
                  <span slot="title">待处理订单</span>
                </el-menu-item>
                <el-menu-item index="4" @click="toFinishOrders()">
                  <i class="el-icon-setting" ></i>
                  <span slot="title">已完成订单</span>
                </el-menu-item>
              </el-menu>
            </el-col>
          </el-row>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>



  </div>

</template>

<script>
    export default {
        name: "User",
        data() {
          return {

          }
        },
        methods: {
          toUserMessage(){
            this.$router.push('/UserMessage')
          },
          toNotPayOrders(){
            this.$router.push('/UserNotPayOrders')
          },
          toFinishOrders(){
            this.$router.push('/UserFinishOrders')
          },
          toNotManagePage(){
            this.$router.push('/UserNotManageOrders')
          },
          toMenuindex(){
            this.$router.push('/menuindex')
          }
        }
    }
</script>

<style scoped>

</style>
